VMX: dump further control state
authorJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:56:33 +0000 (12:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 22 Jan 2015 11:56:33 +0000 (12:56 +0100)
commite9e32a0bf8b55fedb657b00d760ab340f16f2ef2
tree0830e2c69525aea68901f415ca081de5a3602684
parent954b961b797f9899a7249537460b55c573300b8b
VMX: dump further control state

A few relevant control state fields did not get dumped so far; in
particular, VM_ENTRY_INSTRUCTION_LEN got printed twice (instead of also
printing VM_EXIT_INSTRUCTION_LEN). Where suitable (to reduce the amount
of output) make some of the dumping conditional upon guest settings
(this isn't required for correctness as vmr() already uses
__vmread_safe(), i.e. it is fine to access non-existing fields).

Also drop casts.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/include/asm-x86/hvm/vmx/vmcs.h